package com.mb.microservice.framework.utils;

/**
 * @PackageName: com.cbh.http.client.utils
 * @ClassName: Constants
 * @Description: 常量表
 * @author: ABing
 * @date: 2020/9/9
 */
public interface Constants {

    int CONNECTION_TIMEOUT =  30000;

    String URL_FINANCE = "http://122.112.168.179:5984/financechannel_financecc/_find";

    String URL_EFFICIENCY = "http://122.112.168.179:5984/efficiencychannel_efficiencycc/_find";

    String URL_PRODUCE = "http://122.112.168.179:5984/producechannel_producecc/_find";

    String URL_STORAGE = "http://122.112.168.179:5984/warehousechannel_warehousecc/_find";

    String URL_SCENE_OPTIONS = "http://122.112.168.179:5984/securitychannel_securitycc/_find";

    String URL_TRANSACTION = "http://122.112.168.179:5984/tradechannel_tradecc/_find";

    String EXCEL2003 = "xls";
    String EXCEL2007 = "xlsx";

    int LIMIT = 10000;

    String NTPUDP_HOST = "203.107.6.88";

    String QUALITY = "优质";
    String QUALIFIED = "合格";
    String UNQUALIFIED = "不合格";

    // yyyy-MM-dd格式时间校验：
    String DATE_REGEX = "^(?:(?!0000)[0-9]{4}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-8])|(?:0[13-9]|1[0-2])-" +
            "(?:29|30)|(?:0[13578]|1[02])-31)|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)-02-29)$";

    String ID_NUMBER_REGEX = "^[1-9]\\d{5}(18|19|20|(3\\d))\\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$";
    
}
